#ifndef WIDGET_H
#define WIDGET_H

#include "page1_video.h"
#include "page2_chuan.h"
#include "page3_tcp.h"
#include "page4_pid.h"
#include "data_upup.h"
#include "shoubing.h"

#include <QDebug>
#include <QWidget>
#include <QPainter>
#include <QPalette>
#include <QStackedWidget>

QT_BEGIN_NAMESPACE
namespace Ui { class Widget; }
QT_END_NAMESPACE

class Widget : public QWidget
{
    Q_OBJECT

public:
    Widget(QWidget *parent = nullptr);
    ~Widget();

signals:
    void pushbutton_main_clicked();

private slots:
    void on_pushButton_main_clicked();

    void slot_pass_frame();

    void pass_frame(page1 * p1_pass_frame,page3 * p3_pass_frame);

private:
    Ui::Widget *ui;
    page1 * p1;
    page2 * p2;
    page3 * p3;
    page4 * p4;
    shoubing * game_pader;
    cv::Mat frame_widget;
    Data_upup * data_upup_main;
};
#endif // WIDGET_H
